package com.api.user.dao;

import com.api.common.mybatis.ResultMap;
import com.api.core.ApiMapper;
import com.api.user.model.UserFriend;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserFriendMapper extends ApiMapper<UserFriend> {

    UserFriend getFriend(@Param("userId") Long userId,@Param("fansId") Long fansId);

    List<UserFriend> getUserFriend(Long id);

    List<ResultMap<String,Object>> applyList(Long userId);

    List<ResultMap<String, Object>> search( @Param("uid")String uid, @Param("id")Long id);
}